<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>部长修改密码</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <jsp:include page="_Minister.jsp" />
</div>

<div class="right_col" role="main" style="height:656px">
    <div class="row">
        <div class="col-md-8">
            <!-- <h4>修改密码</h4> -->
            <ul class="list-inline">
                <li>信息管理</li>
                <li>/</li>
                <li>修改密码</li>
            </ul>
            <form role="form" class="form-horizontal" action="${pageContext.request.contextPath}/Users/modifyPassword?permission=${sessionScope.user.permission}" method="post">
                <!-- 第一个是用户名  第二个是原始密码-->
                <input type="hidden" class="form-control" name="accounts" id="accounts" value="${sessionScope.user.accounts }">

                ${message}

                <div class="form-group">
                    <label class="col-sm-2 control-label">原密码:</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="oldPassword" id="oldPassword" required>
                    </div>
                </div>                <div class="form-group">
                <label class="col-sm-2 control-label">新的密码:</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" name="newPassword1" id="newPassword1" required>
                </div>
            </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">再次密码:</label>
                    <div class="col-sm-10">
                        <input type="password" class="form-control" name="newPassword2" id="newPassword2" required>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <div class="col-sm-3"></div>
                        <button type="submit" id="submit" class="btn btn-primary col-sm-2">提交</button>
                        <div class="col-sm-2"></div>
                        <button type="reset" class="btn btn-danger col-sm-2">重置</button>
                        <div class="col-sm-3"></div>
                    </div>
                </div>

            </form>

        </div>
    </div>
</div>
</body>
</html>